package com.daykw.ip.config;

import javax.sql.DataSource;

import org.springframework.boot.autoconfigure.jdbc.DataSourceBuilder;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * Created by ebin on 2017/10/16.
 */
@Configuration
public class DruidDataSourceConfig {

//	@Bean(name = "xhsDs")
//	@ConfigurationProperties(prefix = "spring.datasource.xhs")
//	public DataSource xhsDataSource() throws Exception {
//
//		return DataSourceBuilder.create().build();
//	}

	@Bean(name = "bdsDs")
	@ConfigurationProperties(prefix = "spring.datasource.bds")
	public DataSource bdsDataSource() throws Exception {

		return DataSourceBuilder.create().build();
	}
}
